import 'package:flutter/cupertino.dart';
import 'package:s_k_todo/model/task_model.dart';

import '../adapter/task_list_adapter.dart';

class TaskStepList extends StatelessWidget {
  final List<TaskStep> stepList;

  const TaskStepList(this.stepList, {Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) => ListView.separated(
      scrollDirection: Axis.horizontal,
      itemBuilder: (ctx, index) => TaskListAdapter(stepList[index]),
      separatorBuilder: (ctx, index) => Container(
            width: 10,
          ),
      itemCount: stepList.length);
}
